package com.liuning.websocketdemo.pojo;

import lombok.Data;
/*
服务器发给浏览器的websocket数据
系统推送格式:{"isSystem":true,"fromName":null,"message":["admin","zhangsan"]}
推送给某个人的数据格式：{"isSystem":false,"fromName":"zhangsan","message":"hi"}
 */
@Data
public class ResultMessage {

    private boolean isSystem;

    private String fromName;

    //如果是系统消息是数组
    private Object message;

}
